import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import VueLazyload from 'vue-lazyload'

//懒加载
Vue.use(VueLazyload, {
    loading: require('@/static/imgs/loading.gif'), //加载中图片，一定要有，不然会一直重复加载占位图
    // error: require('@/static/imgs/error.png') //加载失败图片
});
//引入全局样式
import './assets/style/global.css';
//引入Element-UI组件库
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

//引入热门榜单组件
import HotRecommend from '@/components/global/HotRecommend.vue'
//配置为全局组件
Vue.component('HotRecommend', HotRecommend)
    //引入新碟上架组件
import Album from '@/components/global/Album.vue'
//配置为全局组件
Vue.component('Album', Album)
    //引入榜单组件
import BillList from '@/components/global/BillList.vue'
//配置为全局组件
Vue.component('BillList', BillList)


Vue.config.productionTip = false;

new Vue({
    router,
    store,
    render: (h) => h(App),
}).$mount("#app");